import request from '@/utils/request'

const prefix = '/finance/budget'

export default {

  create(data) {
    return request({
      url: `${prefix}/create`,
      method: 'post',
      data
    })
  },

  update(data) {
    return request({
      url: `${prefix}/update`,
      method: 'post',
      data
    })
  },

  delete(id) {
    return request({
      url: `${prefix}/delete/${id}`,
      method: 'post'
    })
  },

  page(data) {
    return request({
      url: `${prefix}/page`,
      method: 'post',
      data
    })
  }

}
